package com.dc.model;

import java.util.Date;

public class Lease {
    // 租赁id
    private Integer lease_id;
    // 花卉id
    private Integer flower_id;
    // 客户id
    private Integer client_id;
    // 单价
    private double lease_unit_price;
    // 数量
    private Integer count;
    // 租期
    private Integer duration;
    // 总价
    private double total_price;
    // 到期时间
    private Date expiration_date;
    // 创建时间
    private Date create_time;
    // 更新时间
    private Date update_time;
    // 乐观锁
    private Integer version;
    // 是否删除
    private Integer is_delete;

    public Integer getLease_id() {
        return lease_id;
    }

    public void setLease_id(Integer lease_id) {
        this.lease_id = lease_id;
    }

    public Integer getFlower_id() {
        return flower_id;
    }

    public void setFlower_id(Integer flower_id) {
        this.flower_id = flower_id;
    }

    public Integer getClient_id() {
        return client_id;
    }

    public void setClient_id(Integer client_id) {
        this.client_id = client_id;
    }

    public double getLease_unit_price() {
        return lease_unit_price;
    }

    public void setLease_unit_price(double lease_unit_price) {
        this.lease_unit_price = lease_unit_price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public double getTotal_price() {
        return total_price;
    }

    public void setTotal_price(double total_price) {
        this.total_price = total_price;
    }

    public Date getExpiration_date() {
        return expiration_date;
    }

    public void setExpiration_date(Date expiration_date) {
        this.expiration_date = expiration_date;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(Integer is_delete) {
        this.is_delete = is_delete;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Lease{");
        sb.append("lease_id=").append(lease_id);
        sb.append(", flower_id=").append(flower_id);
        sb.append(", client_id=").append(client_id);
        sb.append(", lease_unit_price=").append(lease_unit_price);
        sb.append(", count=").append(count);
        sb.append(", duration=").append(duration);
        sb.append(", total_price=").append(total_price);
        sb.append(", expiration_date=").append(expiration_date);
        sb.append(", create_time=").append(create_time);
        sb.append(", update_time=").append(update_time);
        sb.append(", version=").append(version);
        sb.append(", is_delete=").append(is_delete);
        sb.append('}');
        return sb.toString();
    }
}
